package net.yunzhanyi.generic.mapper;

import net.yunzhanyi.generic.domain.model.ClientCollection;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author bestct
 */

@Mapper
public interface ClientCollectionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ClientCollection record);

    int insertSelective(ClientCollection record);

    ClientCollection selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ClientCollection record);

    int updateByPrimaryKey(ClientCollection record);


    ClientCollection selectByResIdAndUid(@Param("userId") Long userId, @Param("resId") Long resId, @Param("collectionType") Integer collectionType);


    List<ClientCollection> selectByUid(@Param("uid") Long uid, @Param("type") Integer type);

    void updateStatusByPrimaryKey(@Param("colId") Long colId, @Param("type") Integer type);
}
